package com.cddx.logistics.service;

import com.cddx.logistics.domain.dto.plan.PlanCable2PageDTO;
import com.cddx.logistics.domain.dto.plan.PlanNewPageDTO;
import com.cddx.logistics.domain.dto.plan.PlanNormalPageDTO;
import com.cddx.logistics.domain.dto.plan.PlanSparePageDTO;
import com.cddx.logistics.domain.pojo.plan.PlanCable2;
import com.cddx.logistics.domain.pojo.plan.PlanNew;
import com.cddx.logistics.domain.pojo.plan.PlanNormal;
import com.cddx.logistics.domain.pojo.plan.PlanSpare;
import com.cddx.logistics.domain.vo.SelectObject;
import com.cddx.logistics.util.model.R;

import java.util.List;

public interface PlanService {
    R listNormalPage(PlanNormalPageDTO planNormalPageDTO);

    R deleteNormal(List<Integer> ids);

    R addNormal(PlanNormal planNormal);

    R updateNormal(PlanNormal planNormal);

    R deleteNormal(Integer id);

    R listSparePage(PlanSparePageDTO planSparePageDTO);

    R addSpare(PlanSpare planSpare);

    R updateSpare(PlanSpare planSpare);

    R deleteSpare(List<Integer> ids);

    R deleteSpare(Integer id);

    R listNewPage(PlanNewPageDTO planNewPageDTO);
    R addNew(PlanNew planNew);
    R updateNew(PlanNew planNew);
    R deleteNew(List<Integer> ids);
    R deleteNew(Integer id);

    R listCable2Page(PlanCable2PageDTO planCable2PageDTO);
    R addCable2(PlanCable2 planCable2);
    R updateCable2(PlanCable2 planCable2);
    R deleteCable2(List<Integer> ids);
    R deleteCable2(Integer id);

    R batchAddNormal(List<PlanNormal> planNormals);

    //获取计划类型列表
    List<SelectObject> queryAll();
}
